#include <stdio.h>
#include <stdlib.h>
void solve(int a, int b, int c) {
	int n;
	for (n = 10; n <= 100; n++)
		if (n % 3 == a && n % 5 == b && n % 7 == c) {
			printf("%d\n", n);
			return;
		}
	printf("No answer\n");
}
int main(void) {
	int a, b, c;
	scanf("%d%d%d", &a, &b, &c);
	solve(a, b, c);
	return EXIT_SUCCESS;
}
